// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.

using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Transforms;

namespace SixLabors.ImageSharp.Tests.Processing.Transforms;

[Trait("Category", "Processors")]
public class EntropyCropTest : BaseImageOperationsExtensionTest
{
    [Theory]
    [InlineData(0.5F)]
    [InlineData(.2F)]
    public void EntropyCropThresholdFloatEntropyCropProcessorWithThreshold(float threshold)
    {
        this.operations.EntropyCrop(threshold);
        EntropyCropProcessor processor = this.Verify<EntropyCropProcessor>();

        Assert.Equal(threshold, processor.Threshold);
    }
}
